package com.adroiti.texasholdem.engine.combinations;

import java.util.List;

import com.adroiti.texasholdem.Card;

public class FourOfKind extends NofKind {

	public FourOfKind(){
		this(new High());
	}
	
	public FourOfKind(High high) {
		super(high);
	}

	@Override
	public int getRank(List<Card> player, List<Card> table) {
		return getNKindRank(player, table, 4, 0);
	}

	@Override
	public String getName() {
		return "Four of kind";
	}

	@Override
	public int getCombinationRank() {
		return 8;
	}

}
